<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        {{msg + '，啦啦啦'}}
        <button v-on:click="click1">再见1</button>
        <button @click="click2">再见2</button>
        <div v-html="msg"></div>
        <input type="text" @input="input1">


    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                msg:'<h1>我是一级标题</h1>'
            },
            methods: {
                click1(){
                    this.msg='再见'

                },
                click2(){
                    this.msg='再也不见'

                },
                input1(event){
                    // alert('输入中'),
                    console.log(event.target.value);
                    
                }

            }
        })
    </script>
</body>

</html>